#ifndef FRIENDAPPLYBOX_H
#define FRIENDAPPLYBOX_H

#include <QWidget>
#include "AbstractLayer/Database/databaseclass.h"
#include "AbstractLayer/Network/threadmanger.h"
namespace Ui {
class FriendApplyBox;
}

class FriendApplyBox : public QWidget
{
    Q_OBJECT

public:
    explicit FriendApplyBox(QWidget *parent = nullptr);
    ~FriendApplyBox();
    void initBox(const QString& useroc,const QString& friendoc,const QString& friendname, const EnumLib::ApplyStatus status);
    void setStatus(const EnumLib::ApplyStatus status);
    QSize getSizeHint();
private slots:
    void on_pushButton_clicked();
    void emitCloseSignal();
signals:
    void s_appendContactWidget(const QString& oc,const QString& name);
private:
    void setBtnMode(const EnumLib::ApplyStatus status);
private:
    Ui::FriendApplyBox *ui;
    QString useroc;
    QString friendoc;
    QString friendname;
    EnumLib::ApplyStatus status;
};

#endif // FRIENDAPPLYBOX_H
